home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Filing / c / Single < prev    next >
Text File  |  1995-07-28  |  997b  |  30 lines

  1. /*
  2.     ####             #    #     # #
  3.     #   #            #    #       #          The FreeWare C library for
  4.     #   #  ##   ###  #  # #     # ###             RISC OS machines
  5.     #   # #  # #     # #  #     # #  #   ___________________________________
  6.     #   # ####  ###  ##   #     # #  #
  7.     #   # #        # # #  #     # #  #    Please refer to the accompanying
  8.     ####   ### ####  #  # ##### # ###    documentation for conditions of use
  9.     ________________________________________________________________________
  10.  
  11.     File:    Filing.Single.c
  12.     Author:  Copyright © 1995 Sergio Monesi
  13.     Version: 1.00 (28 Jul 1995)
  14.     Purpose: Reads a single directory entry
  15. */
  16.  
  17. #include "DeskLib:Core.h"
  18. #include "DeskLib:Filing.h"
  19.  
  20. os_error *Filing_SingleDirEntry(char *filename, filing_direntry *buf, int size)
  21. {
  22.  char pathname[256];
  23.  char *leafname;
  24.  
  25.  Filing_GetPathname(filename,pathname);
  26.  leafname=Filing_FindLeafname(filename);
  27.  
  28.  return Filing_SingleDirEntry2(pathname,buf,size,leafname);
  29. }
  30.